package com.yonyou.brigade.third_parties.ctrip.bigcustomer.service.impl;

import com.yonyou.brigade.basic_init.enums.ChannelEnum;
import com.yonyou.brigade.basic_init.enums.OpenTypeEnum;
import com.yonyou.brigade.basic_init.model.BriChannel;
import com.yonyou.brigade.basic_init.service.IBriChannelService;
import com.yonyou.brigade.third_parties.ctrip.bigcustomer.service.IBigCustomerService;
import com.yonyou.brigade.third_parties.ctrip.model.CtripConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class BigCustomerServiceImpl implements IBigCustomerService {

    @Autowired
    @Qualifier("briChannelServiceImpl")
    private IBriChannelService briChannelService;

    public void openCtripBigCustomer(String tenant, String orgPk, int preApprove, String phone, CtripConfig config)
    {
        briChannelService.openBriChannel(tenant,ChannelEnum.CTRIPBC.getName(),preApprove,orgPk,OpenTypeEnum.ORG,phone,config);
    }


}
